<template>
  <div class="block">
    <el-carousel height="350px" align="center">
      <el-carousel-item v-for="(item, index) in imglist" :key="item.id">
        <div v-if="isShow" class="demonstration">{{ item.text }}</div>
        <div v-if="isShow" class="fs">
          <span>{{ index + 1 }}</span
          >/5
        </div>
        <img :src="item.image" />
        <div class="img_test"></div>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {
  props: ["imglist", "isShow"],
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>
<style scoped>
.el-carousel__item img {
  color: #475669;

  font-size: 14px;
  /* width: 1200px; */
  height: 80%;
  /* width: 80%; */
}

.el-carousel__item:nth-child(2n) {
  background-color: #fff;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #fff;
}
.demonstration {
  margin-bottom: 10px;
  font-size: 20px;
}
span {
  color: red;
  font-weight: 500;
  font-size: 20px;
}
</style>
 